package com.joel.client;

import com.joel.crm.model.DoubleLinkedlist;
import com.joel.crm.commandParseImpl.CommandParseImpl;
import com.joel.crm.customer.*;

public class Inital {
	public static DoubleLinkedlist inital(){
		Customer one = new Customer("1","Kobe","male","2000-1-1","USA","11111");
		Customer two = new Customer("6","Curry", "male", "2000-1-2", "USA","22222");
		Customer three = new Customer("3","James", "male", "2000-1-3", "USA","33333");
		Customer four = new Customer("4","Wade", "male", "2000-1-4", "USA","44444");
		Customer five = new Customer("15","Westbrook", "male", "2000-1-5", "USA","555555");
		Customer six = new Customer("12","Harden", "male", "2000-1-6", "USA","66666");
		Customer seven = new Customer("13","Kawai", "male", "2000-1-7", "USA","77777");
		Customer eight = new Customer("40","Paul", "male", "2000-1-8", "USA","88888");
		Customer nine = new Customer("9","Lrving", "male", "2000-1-9", "USA","99999");
		Customer ten = new Customer("10","Tompson", "male", "2000-1-10", "USA","101010");
		
		DoubleLinkedlist doubleLinkedlist = new DoubleLinkedlist();
		doubleLinkedlist.add(one);
		doubleLinkedlist.add(two);
		doubleLinkedlist.add(three);
		doubleLinkedlist.add(four);
		doubleLinkedlist.add(five);
		doubleLinkedlist.add(six);
		doubleLinkedlist.add(seven);
		doubleLinkedlist.add(eight);
		doubleLinkedlist.add(nine);
		doubleLinkedlist.add(ten);
		//doubleLinkedlist.show();
		return doubleLinkedlist;
	}
	
	public static void run() {
		System.out.println("***********************************************************WELCOME CRM********************************************************\n"+
						   "********************************************************Try to input \"H\"******************************************************\n");
		CommandParseImpl commandParseImpl = new CommandParseImpl();
		commandParseImpl.cmdParse();
	}
}
